﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ls_r
{
    public class ExtInfo
    {
        private String extension;
        private Int32 count;
        private Int64 space;
        public ExtInfo()
        {
            this.count = 0;
            this.space = 0;
            this.extension = String.Empty;
        }
        public void GetExtInfo()
        {
            Console.WriteLine("{0} {1} times and {2} Mb", this.extension,this.count, this.space / (1024*1024));
        }
        public void SetExtInfo(String extension, Int64 space)
        {
            this.count++;
            this.extension = extension;
            this.space += space;
        }
        public String GetExt()
        {
            return this.extension;
        }
        public Int64 GetSpace()
        {
            return this.space;
        }

    }
}
